package com.mju.feign.clients;

import com.mju.controller.common.JsonResult;
import com.mju.feign.pojo.VipReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("vip-service")
public interface VipClient {
    //开通VIP
    @PostMapping("/vip/activateVip")
    public JsonResult activateVip(@RequestBody VipReq req);

    //查询某会员折扣(为-1.00则为查询不到)
    @GetMapping("/vipPrice/getDiscountByVipName/{vipName}")
    public JsonResult getDiscountByVipName(@PathVariable("vipName") String vipName);
}
